package stud.mpgame.server.preview;

import org.apache.mina.core.buffer.IoBuffer;
import stud.mpgame.network.Message;
import stud.mpgame.network.UserObject;
import stud.mpgame.network.util.MessageUtils;

/**
 * Created by IntelliJ IDEA.
 * User: Yarik
 */
public class MapInfo extends UserObject{

    private static final String mapURL="some URL";

    public String getMapURL(){
        return  mapURL;
    }

    public void writeExternal(IoBuffer buffer, Message owner) {

        buffer.put(MessageUtils.strToBytes(mapURL));
    }

}
